package com.study.www.demofilter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan("com.study.www.demofilter")
public class Application {

    /** 时间格式化 */
    public static final String DATEFORMAT="HH:mm:ss:SSS";

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

//    @Bean
//    public DemoDispatcherServlet dispatcherServlet(WebApplicationContext webApplicationContext){
//        return ;
//    }

//    @Bean
//    public ServletRegistrationBean servletRegistrationBean(WebApplicationContext webApplicationContext){
//        DemoDispatcherServlet demoDispatcherServlet = new DemoDispatcherServlet(webApplicationContext);
//        ServletRegistrationBean<DispatcherServlet> servletServletRegistrationBean = new ServletRegistrationBean<>(demoDispatcherServlet);
////        servletServletRegistrationBean.addUrlMappings("*.do");
//        servletServletRegistrationBean.setUrlMappings(Arrays.asList("*.do"));
//        servletServletRegistrationBean.setServlet(demoDispatcherServlet);
//        return servletServletRegistrationBean;
//    }
}
